import PageContent from '@/components/page-content';
import { ref } from 'vue';

export function usePageSearchHooks() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>();
  const handleResetClick = (): any => {
    pageContentRef.value?.getPageData();
  };

  const handleQueryClick = (queryInfo: any): any => {
    pageContentRef.value?.getPageData(queryInfo);
  };
  return [pageContentRef, handleResetClick, handleQueryClick] as const;
}
